package com.edu.bhu.admin.domain;

import java.util.Date;

import com.edu.bhu.common.core.domain.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 疫苗接种对象 pre_vaccination
 * 
 * @author yutianyang
 * @date 2022-04-23
 */
public class PreVaccination extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 疫苗接种表主键 */
    private Long detectionId;

    /** 次序，1.2.3 */
    @Excel(name = "次序，1.2.3")
    private Long orders;

    /** 接种状态 0 未 1.已 */
    @Excel(name = "接种状态 0 未 1.已")
    private Long status;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;
    private SysUser sysUser;

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date redate;

    public void setDetectionId(Long detectionId) 
    {
        this.detectionId = detectionId;
    }

    public Long getDetectionId() 
    {
        return detectionId;
    }

    public Long getOrders() {
        return orders;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRedate(Date redate) 
    {
        this.redate = redate;
    }

    public Date getRedate() 
    {
        return redate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detectionId", getDetectionId())
            .append("orders", getOrders())
            .append("status", getStatus())
            .append("userId", getUserId())
            .append("redate", getRedate())
            .toString();
    }
}
